package com.android.personal.kotlin.client;

import com.android.personal.kotlin.IConstants;
import com.android.personal.kotlin.response.AllCpResponse;
import com.android.personal.kotlin.response.InspectReasonResponse;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by zhangwentao on 2016/12/29.
 */

public interface ApiService {

    @GET(IConstants.sCommCp)
    Call<AllCpResponse> getCp();

    @GET(IConstants.sCommInspectReservation)
    Call<InspectReasonResponse> getInspectReservation(@Query("category") String category);

    @GET(IConstants.sCommInspectReservation)
    Call<String> getInspectReservationString(@QueryMap Map<String, Object> map);

    @GET(IConstants.sCommCp)
    Observable<String> getObservableCp();
}
